/*
    This file is part of SQLiteGTK, written by Aly Hirani

    SQLiteGTK is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    SQLiteGTK is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with SQLiteGTK.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "include.h"
#include "message_dialog_list.h"
#include "util.h"

void
message_dialog_button_close_clicked_cb(GObject *object, gpointer user_data)
{
	/*
	g_assert(object != NULL);
	g_assert(user_data != NULL);
	
	GtkBuilder *builder = GTK_BUILDER(user_data);
	g_assert(builder != NULL);
	
	GtkDialog *message_dialog = GTK_DIALOG(gtk_builder_get_object(builder, "dialog_window"));
	g_assert(message_dialog != NULL);
	
	gtk_dialog_response(message_dialog, GTK_RESPONSE_CLOSE);
}

void
message_dialog_button_cancel_clicked_cb(GObject *object, gpointer user_data)
{
	g_assert(object != NULL);
	g_assert(user_data != NULL);
	
	GtkBuilder *builder = GTK_BUILDER(user_data);
	g_assert(builder != NULL);
	
	GtkDialog *message_dialog = GTK_DIALOG(gtk_builder_get_object(builder, "dialog_window"));
	g_assert(message_dialog != NULL);
	
	gtk_dialog_response(message_dialog, GTK_RESPONSE_CANCEL);
}

void
message_dialog_button_save_clicked_cb(GObject *object, gpointer user_data)
{
	g_assert(object != NULL);
	g_assert(user_data != NULL);
	
	GtkBuilder *builder = GTK_BUILDER(user_data);
	g_assert(builder != NULL);
	
	GtkDialog *message_dialog = GTK_DIALOG(gtk_builder_get_object(builder, "dialog_window"));
	g_assert(message_dialog != NULL);
	
	gtk_dialog_response(message_dialog, GTK_RESPONSE_YES);
	*/
}

GList *
show_message_dialog_with_save_list(GList *list, const gchar* text_label_1, const gchar* text_label_2)
{
	/*
	g_assert(list != NULL);
	g_assert(text_label_1 != NULL);
	g_assert(text_label_2 != NULL);
	
	GtkBuilder *builder = gtk_builder_new();
	g_assert(builder != NULL);
	
	guint add_result = gtk_builder_add_from_file(builder, "message_dialog_list.xml", NULL);
	g_assert(add_result != 0);
	gtk_builder_connect_signals(builder, builder);
	
	GtkWindow *window = GTK_WINDOW(gtk_builder_get_object(builder, "dialog_window"));
	g_assert(window != NULL);
	
	g_object_set(window, "text", text_label_1, "secondary-text", text_label_2, NULL);
	g_object_set_data_full(G_OBJECT(window), "builder", builder, (GDestroyNotify)g_object_unref);
	
	gtk_dialog_run(GTK_DIALOG(window));
	
	gtk_widget_destroy(GTK_WIDGET(window));
	
	return NULL;
	*/
	
	return NULL;
}
